﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowHideFields.aspx.cs" Inherits="Com.CodePlex.SPC3.ShowHideFields.Layouts.Com.CodePlex.SPC3.ShowHideFields" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="wssuc" TagName="LinkSection" src="~/_controltemplates/LinkSection.ascx" %>
<%@ Register Tagprefix="Meetings" Namespace="Microsoft.SharePoint.Meetings" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Workflow" Namespace="Microsoft.SharePoint.Workflow" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
	Show/Hide Fields
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<a id="onetidListHlink" href="<%= spList.DefaultViewUrl %>"><%SPHttpUtility.HtmlEncode(spList.Title,Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" /> <a href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode("../listedit.aspx?List=" + spList.ID.ToString(),true),Response.Output);%>> <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server" String="<%$Resources:wss,listsettings_titleintitlearea%>" LowerCase="false" /></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2" runat="server" />Show/Hide Fields
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<script Language="javascript">
// <![CDATA[
/*
function ULSUci(){var o=new Object;o.ULSTeamName="Microsoft SharePoint Foundation";o.ULSFileName="ListGeneralSettings.aspx";return o;}
var L_alert3_Text = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,lstsetng_L_alert3_Text%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
function _spFormOnSubmit()
{ULSUci:;
	var ListTitleElem = (document.getElementById("<%--= TxtListTitle.ClientID --%>"));
	ListTitleElem.value = TrimSpaces(ListTitleElem.value);
	if (ListTitleElem.value.length < 1)
	{
		window.alert(L_alert3_Text);
		ListTitleElem.focus();
		return false;
	}
	return true;
}
*/
// ]]>
</script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
Show/Hide Fields
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderId="PlaceHolderMain" runat="server">
  <table class="ms-propertysheet" border="0" cellpadding="0" cellspacing="0" >
  <wssuc:InputFormSection runat="server">
	<Template_Title>
		Show/Hide Fields
	</Template_Title>
	<Template_Description>
		Configure when each field should display on list forms.
	</Template_Description>
	<Template_InputFormControls>
		<tr><td><table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0" id="ItemTable">
		<tr>
			<td nowrap="nowrap" class="ms-authoringcontrols" valign="bottom" id="200"><b>Field Name</b>&#160;</td>
            <td><b>ReadOnly</b>&#160;</td>
            <td><b>Hidden</b>&#160;</td>
			<td><B><SharePoint:EncodedLiteral ID="EncodedLiteral9" runat="server" text="DisplayForm" EncodeMethod='HtmlEncode'/></B>&#160;</td>
            <td><B><SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="EditForm" EncodeMethod='HtmlEncode'/></B>&#160;</td>
            <td><B><SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="ListSettings" EncodeMethod='HtmlEncode'/></B>&#160;</td>
            <td><B><SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="NewForm" EncodeMethod='HtmlEncode'/></B>&#160;</td>
            <td><B><SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" text="VersionHistory" EncodeMethod='HtmlEncode'/></B>&#160;</td>
            <td><B><SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" text="ViewForms" EncodeMethod='HtmlEncode'/></B>&#160;</td>
		</tr>
		<tr><td><img src="/_layouts/images/blank.gif" width='1' height='3' alt="" /></td></tr>
        <asp:PlaceHolder runat="server" ID="phShowHideFields" />
		</table></td></tr>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:ButtonSection runat="server">
	<Template_Buttons>
		<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="BtnSave_Click" Text="<%$Resources:wss,multipages_savebutton_text%>" id="BtnSave" accesskey="<%$Resources:wss,multipages_savebutton_accesskey%>"/>
	</Template_Buttons>
</wssuc:ButtonSection>
<%--
<wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
		<Template_Buttons>
			<asp:PlaceHolder ID="PlaceHolder1" runat="server">
	 	        <input id="onetidSaveItem" type="button" class="ms-ButtonHeightWidth" value="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_okbutton_text%>' EncodeMethod='HtmlEncode'/>" accesskey="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_okbutton_accesskey%>' EncodeMethod='HtmlEncode'/>" onclick="javascript:DoBuildAndSubmit()" />
	 	    </asp:PlaceHolder>
	 	    <asp:PlaceHolder ID="PlaceHolder2" runat="server">
	 	        <input id="onetidCancel"   type="reset"  class="ms-ButtonHeightWidth" value="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_cancelbutton_text%>' EncodeMethod='HtmlEncode'/>" accesskey="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_cancelbutton_accesskey%>' EncodeMethod='HtmlEncode'/>" onclick="javascript:window.parent.history.back()" />
	 	    </asp:PlaceHolder>
	 	</Template_Buttons>
</wssuc:ButtonSection>
--%>
</table>
</asp:Content>
<asp:Content ID="Content7" contentplaceholderid="PlaceHolderTopNavBar" runat="server">
  <wssuc:TopNavBar id="IdTopNavBar" runat="server" Version="4" ShouldUseExtra="true"/>
</asp:Content>
<asp:Content ID="Content8" contentplaceholderid="PlaceHolderHorizontalNav" runat="server"/>
<asp:Content ID="Content9" contentplaceholderid="PlaceHolderSearchArea" runat="server"/>
<asp:Content ID="Content10" contentplaceholderid="PlaceHolderTitleBreadcrumb" runat="server">
  <SharePoint:UIVersionedContent ID="UIVersionedContent1" UIVersion="3" runat="server"><ContentTemplate>
	<asp:SiteMapPath
		SiteMapProvider="SPXmlContentMapProvider"
		id="ContentMap"
		SkipLinkText=""
		NodeStyle-CssClass="ms-sitemapdirectional"
		RootNodeStyle-CssClass="s4-die"
		PathSeparator="&#160;&gt; "
		PathSeparatorStyle-CssClass = "s4-bcsep"
		runat="server" />
  </ContentTemplate></SharePoint:UIVersionedContent>
  <SharePoint:UIVersionedContent ID="UIVersionedContent2" UIVersion="4" runat="server"><ContentTemplate>
	<SharePoint:ListSiteMapPath
		runat="server"
		SiteMapProviders="SPSiteMapProvider,SPXmlContentMapProvider"
		RenderCurrentNodeAsLink="false"
		PathSeparator=""
		CssClass="s4-breadcrumb"
		NodeStyle-CssClass="s4-breadcrumbNode"
		CurrentNodeStyle-CssClass="s4-breadcrumbCurrentNode"
		RootNodeStyle-CssClass="s4-breadcrumbRootNode"
		HideInteriorRootNodes="true"
		SkipLinkText="" />
  </ContentTemplate></SharePoint:UIVersionedContent>
</asp:Content>
